/*===========================================

	True Love Wii

	Coders:
		GizmoTheGreen
		TalkLittle

	Credits:
		NoNameNo

============================================*/

#ifndef _COMMON_H_
#define _COMMON_H_

#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <fat.h>
#include <malloc.h>

#include "GRRLIB/GRRLIB.h"
#include "MRS.h"

// Shared global variables
extern int endianness; // 0 little, 1 big
extern int quit;

extern FILE *MRSfp;
extern int MRS_paletteNumber; // 0x0-0xF
extern u8 *MRS_bg_data;
extern u8 *MRS_sprite_data;
extern u32 MRS_bg_colorTable[256]; // 256 or 16??
extern u32 MRS_sprite_colorTable[256]; // 256 or 16??
extern short MRS_bg_width, MRS_bg_height;

#endif /* _COMMON_H_ */
